import 'package:flutterproject/generated/json/base/json_convert_content.dart';
import 'package:flutterproject/page/mine/data/mine_index_bean.dart';

MineIndexBean $MineIndexBeanFromJson(Map<String, dynamic> json) {
	final MineIndexBean mineIndexBean = MineIndexBean();
	final int? areaAmount = jsonConvert.convert<int>(json['areaAmount']);
	if (areaAmount != null) {
		mineIndexBean.areaAmount = areaAmount;
	}
	final int? level = jsonConvert.convert<int>(json['level']);
	if (level != null) {
		mineIndexBean.level = level;
	}
	final String? levelTitle = jsonConvert.convert<String>(json['levelTitle']);
	if (levelTitle != null) {
		mineIndexBean.levelTitle = levelTitle;
	}
	final String? mobile = jsonConvert.convert<String>(json['mobile']);
	if (mobile != null) {
		mineIndexBean.mobile = mobile;
	}
	final int? myAmount = jsonConvert.convert<int>(json['myAmount']);
	if (myAmount != null) {
		mineIndexBean.myAmount = myAmount;
	}
	final double? redPacketReleased = jsonConvert.convert<double>(json['redPacketReleased']);
	if (redPacketReleased != null) {
		mineIndexBean.redPacketReleased = redPacketReleased;
	}
	final double? redPacketTotal = jsonConvert.convert<double>(json['redPacketTotal']);
	if (redPacketTotal != null) {
		mineIndexBean.redPacketTotal = redPacketTotal;
	}
	final double? redPacketUnreleased = jsonConvert.convert<double>(json['redPacketUnreleased']);
	if (redPacketUnreleased != null) {
		mineIndexBean.redPacketUnreleased = redPacketUnreleased;
	}
	final String? shareCode = jsonConvert.convert<String>(json['shareCode']);
	if (shareCode != null) {
		mineIndexBean.shareCode = shareCode;
	}
	final int? shareNum = jsonConvert.convert<int>(json['shareNum']);
	if (shareNum != null) {
		mineIndexBean.shareNum = shareNum;
	}
	final int? teamAmount = jsonConvert.convert<int>(json['teamAmount']);
	if (teamAmount != null) {
		mineIndexBean.teamAmount = teamAmount;
	}
	final int? teamNum = jsonConvert.convert<int>(json['teamNum']);
	if (teamNum != null) {
		mineIndexBean.teamNum = teamNum;
	}
	return mineIndexBean;
}

Map<String, dynamic> $MineIndexBeanToJson(MineIndexBean entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['areaAmount'] = entity.areaAmount;
	data['level'] = entity.level;
	data['levelTitle'] = entity.levelTitle;
	data['mobile'] = entity.mobile;
	data['myAmount'] = entity.myAmount;
	data['redPacketReleased'] = entity.redPacketReleased;
	data['redPacketTotal'] = entity.redPacketTotal;
	data['redPacketUnreleased'] = entity.redPacketUnreleased;
	data['shareCode'] = entity.shareCode;
	data['shareNum'] = entity.shareNum;
	data['teamAmount'] = entity.teamAmount;
	data['teamNum'] = entity.teamNum;
	return data;
}